/*
 * This file is part of b.AMP.
 * 
 * b.AMP is free software: you can redistribute it and/or modify it under 
 * the terms of the GNU Lesser General Public License as published by the 
 * Free Software Foundation, either version 3 of the License, or (at your 
 * option) any later version.
 * 
 * b.AMP is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or 
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU lesser General Public 
 * License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with b.AMP.  If not, see <http://www.gnu.org/licenses/>.
 */

#include "dsp_test.hpp"

BAMP_DSP_DECLARE(DspTest, "");
BAMP_CLASS_LIST(bamp::DspPtr::cname);


DspTest::DspTest()
{

}

DspTest::~DspTest()
{

}

void DspTest::setHost(bamp::HostPtr host)
{

}

void DspTest::send(bamp::MessagePtr msg)
{

}

bamp::Format DspTest::getInFormat(size_t chan)
{
    bamp::Format fmt = { BAMP_ENC_ANY, 48000 };
    return fmt;
}

void DspTest::setInput(bamp::SoundWriterPtr input)
{

}

size_t DspTest::getPosition() const
{
    return 0;
}

void DspTest::setPosition(size_t position)
{

}

bool DspTest::getSeekable() const
{
    return false;
}

size_t DspTest::getChannels() const
{
    return 1;
}

bamp::Format DspTest::getOutFormat(size_t chan)
{
    bamp::Format fmt = { BAMP_ENC_ANY, 48000 };
    return fmt;
}

bamp::Status DspTest::read(size_t chan, char* dst, size_t& size)
{
    return BAMP_READ_EOS;
}
